%h2
  = @job.company
  %span= 'recruiting'[]
  = @job.title
%p
  %strong= 'Location'[]+':'
  = @job.location
  %br/
  - if @job.url
    %strong= 'URL'[]+':'
    = link_to @job.url, @job.url
%p
  %strong= 'Description'[]
  %br/
  = @job.description

- if @job.instructions
  %p
    %strong= 'To apply'[]
    %br/
    = @job.instructions
%p
  %strong= 'Posted on'[]+":"
  = @job.created_at.to_s(:db)


- allow_edit(@job) do
  = link_to 'Edit'[], edit_job_path(@job)
  |
  = link_to 'Destroy'[], job_path(@job), :method => :delete, :confirm => 'Do you want to destroy the job?'
  |

= link_to 'Back to job list'[], jobs_path
